package powerControl.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User implements java.io.Serializable {

	// Fields

	private String uuid;
	private String name;
	private String password;
	private Boolean state;
	private Long orderId;
	private String trueName;
	private String branchId;
	private String positionId;
	private String mobile;
	private String email;
	private Date creatTime;
	private String creatorId;
	private Date loginTime;
	private Date lastLoginTime;
	private Long loginCount;
	private String remark;
	private Set userRoleRelations = new HashSet(0);

	// Constructors

	/** default constructor */
	public User() {
	}

	/** minimal constructor */
	public User(String name, String password, Boolean state) {
		this.name = name;
		this.password = password;
		this.state = state;
	}

	/** full constructor */
	public User(String name, String password, Boolean state, Long orderId,
			String trueName, String branchId, String positionId, String mobile,
			String email, Date creatTime, String creatorId, Date loginTime,
			Date lastLoginTime, Long loginCount, String remark,
			Set userRoleRelations) {
		this.name = name;
		this.password = password;
		this.state = state;
		this.orderId = orderId;
		this.trueName = trueName;
		this.branchId = branchId;
		this.positionId = positionId;
		this.mobile = mobile;
		this.email = email;
		this.creatTime = creatTime;
		this.creatorId = creatorId;
		this.loginTime = loginTime;
		this.lastLoginTime = lastLoginTime;
		this.loginCount = loginCount;
		this.remark = remark;
		this.userRoleRelations = userRoleRelations;
	}

	// Property accessors

	public String getUuid() {
		return this.uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Boolean getState() {
		return this.state;
	}

	public void setState(Boolean state) {
		this.state = state;
	}

	public Long getOrderId() {
		return this.orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public String getTrueName() {
		return this.trueName;
	}

	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}

	public String getBranchId() {
		return this.branchId;
	}

	public void setBranchId(String branchId) {
		this.branchId = branchId;
	}

	public String getPositionId() {
		return this.positionId;
	}

	public void setPositionId(String positionId) {
		this.positionId = positionId;
	}

	public String getMobile() {
		return this.mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Date getCreatTime() {
		return this.creatTime;
	}

	public void setCreatTime(Date creatTime) {
		this.creatTime = creatTime;
	}

	public String getCreatorId() {
		return this.creatorId;
	}

	public void setCreatorId(String creatorId) {
		this.creatorId = creatorId;
	}

	public Date getLoginTime() {
		return this.loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	public Date getLastLoginTime() {
		return this.lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public Long getLoginCount() {
		return this.loginCount;
	}

	public void setLoginCount(Long loginCount) {
		this.loginCount = loginCount;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Set getUserRoleRelations() {
		return this.userRoleRelations;
	}

	public void setUserRoleRelations(Set userRoleRelations) {
		this.userRoleRelations = userRoleRelations;
	}

}